package example.controllers;

import java.util.HashMap;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class ExampleController {

	@RequestMapping("/")
	public ModelAndView handleRequest() {
		
		HashMap<String, String> model = new HashMap<String, String>();
		model.put("iAmUsed", "Hello world!");
		model.put("iAmNotUsed", "Goodbye world!");
		
		return new ModelAndView("WEB-INF/jsp/example.jsp", model);
	}
}
